/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2022-2022. All rights reserved.
 * Description: xxx
 * Author: l00650229
 * Create: 2022/11/1
 * Notes:
 */

#include <iostream>
#include <map>
#include <tuple>

struct Test {
    double a;
    int b;
    std::string c;
};

int main() {
    int code = 0;
    if ((code = 2) != 0) {
        std::cout << code << std::endl;
    }
    Test t;
    std::cout << "a:" << t.a << std::endl;
    std::cout << "b:" << t.b << std::endl;
    std::cout << "c:" << t.c << std::endl;

    std::map<int, int> maps = {{1, 2}};


    for (auto const &[key, val] : maps) {
        std::cout << "val: " << val << std::endl;
    }
    return 0;
}